package com.zzyl.mapper;


import com.github.pagehelper.Page;
import com.zzyl.entity.AlertRule;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface AlertMapper {

    /**
     * 新增报警规则
     * @param alertRule
     */
    void createAlertRule(AlertRule alertRule);

    Page<AlertRule> getPages(String alertRuleName, String functionName, String productKey);

    /**
     * 得到单个数据
     * @param id
     * @return {@link AlertRule }
     */
    AlertRule getById(Long id);
}
